﻿@model PhoneBilling.Models.SliceDetailEditModel
@{
    ViewBag.Title = "分级计费表编辑";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{ 
    <div >
        @Html.HiddenFor(m => m.SliceID)
        @Html.HiddenFor(m=>m.IsNew)
        
        <div class="input-text">
             @Html.LabelFor(m => m.名称)
@{
    if (Model.IsNew)
    {
             @Html.TextBoxFor(m => m.名称)
             @Html.ValidationMessageFor(m => m.名称, new { style = "color:Red" })
    }else 
    {
             @Html.DisplayFor(m => m.名称)
             @Html.HiddenFor(m => m.名称)
    }
}
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.分段起点时间)
             @Html.TextBoxFor(m => m.分段起点时间)
             @Html.ValidationMessageFor(m => m.分段起点时间, new { style = "color:Red" })
             @Html.LabelFor(m => m.分段截止时间)
             @Html.TextBoxFor(m => m.分段截止时间)
             @Html.ValidationMessageFor(m => m.分段截止时间, new { style = "color:Red" })
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.费用类别)
             @Html.DropDownListFor(m => m.费用类别, new SelectList(Model.FeeTypeList, "ID", "Name"), new { style = "input-text" })
             @Html.ValidationMessageFor(m => m.费用类别, new { style = "color:Red" })
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.费率)
             @Html.TextBoxFor(m => m.费率)
             @Html.ValidationMessageFor(m => m.费率, new { style = "color:Red" })
              @Html.LabelFor(m => m.计次单位)
             @Html.TextBoxFor(m => m.计次单位)
             @Html.ValidationMessageFor(m => m.计次单位, new { style = "color:Red" })
        </div>
        <div class="input-text">
             @Html.CheckBoxFor(m => m.是否计算计次, Model.是否计算计次)
             @Html.LabelFor(m => m.是否计算计次)
             @Html.ValidationMessageFor(m => m.是否计算计次, new { style = "color:Red" })
        </div>
        
        <p class="submit">
            <input type="submit" value="确定" class="input-submit" />
        </p>
    </div>
}
